from distutils.core import setup
import py2exe


class Target:
    def __init__(self, **kw):
        self.__dict__.update(kw)
        # for the versioninfo resources
        self.version = "1.0"
        self.company_name = "NumeriPlus"
        self.copyright = "copyright 2008"
        self.name = "NBS synchronisation automatique"
        
 
 
myservice = Target(
    
    # used for the versioninfo resource
    description = "NBS DAEMON SYNCHRO",
    # what to build.  For a service, the module name (not the
    # filename) must be specified!
    modules = ["Daemon_nbs"] #sans .py
    )
 
 
setup( service = [myservice], options = {"py2exe":{"compressed": 1,"optimize": 0, "bundle_files": 1,"dist_dir":'../setup-daemon'}})
